<?php

/**
 * Alumno form base class.
 *
 * @method Alumno getObject() Returns the current form's model object
 *
 * @package    ecampus
 * @subpackage form
 * @author     Grupo 608
 * @version    SVN: $Id: sfDoctrineFormGeneratedInheritanceTemplate.php 29553 2010-05-20 14:33:00Z Kris.Wallsmith $
 */
abstract class BaseAlumnoForm extends UsuarioForm
{
  protected function setupInheritance()
  {
    parent::setupInheritance();

    $this->widgetSchema   ['legajo_alumno'] = new sfWidgetFormInputText();
    $this->validatorSchema['legajo_alumno'] = new sfValidatorString(array('max_length' => 5, 'required' => false));

    $this->widgetSchema   ['telefono'] = new sfWidgetFormInputText();
    $this->validatorSchema['telefono'] = new sfValidatorString(array('max_length' => 10, 'required' => false));

    $this->widgetSchema   ['anio'] = new sfWidgetFormInputText();
    $this->validatorSchema['anio'] = new sfValidatorInteger(array('required' => false));

    $this->widgetSchema->setNameFormat('alumno[%s]');
  }

  public function getModelName()
  {
    return 'Alumno';
  }

}
